<template>
  <div class="home-panel">
    <div class="container">
      <div class="head">
        <div class="zuo">
          <h3>
            {{ title }}
          </h3>
          <small>{{ subTitle }}</small>
        </div>
        <slot name="youbian"></slot>
      </div>
      <slot name="default"></slot>
    </div>
  </div>
</template>

<script lang="ts" setup name="HomePanel">
import { defineProps } from 'vue'
// HomePanel
const { title = '默认主标题', subTitle = '默认副标题' } = defineProps<{ title?: string; subTitle?: string }>()
</script>

<style lang="scss" scoped>
.home-panel {
  .head {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
    background-color: #ffffff;
    align-items: center;
    .zuo {
      display: flex;
      align-items: flex-end;
      // vertical-align: middle;

      h3 {
        font-size: 30px;
        margin-right: 30px;
        color: #000;
      }
      small {
        line-height: 30px;
        font-size: 12px;
        color: #777;
      }
    }
  }
}
</style>
